<?php
class User_Service_PositionRightMap
{
	public function __construct(){
		
	}
	
	public function add($row){
		$Obj = new User_Model_PositionRightMap();
		return $Obj->add($row);		
	}
	
	/**
	 * 获取指定权限的action
	 */
	public function getByPid($pid){
		$Obj = new User_Model_PositionRightMap();
		return $Obj->getByPid($pid);		
	}
	
	public function deleteBy($pid,$ur_id){
		$Obj = new User_Model_PositionRightMap();
		return $Obj->deleteBy($pid,$ur_id);		
	}
	
	/**
	 * 根据条件获取指定模块信息
	 */
	public function getByCond($cond,$type,$order,$count,$offset){
		$Obj = new User_Model_PositionRightMap();
		return $Obj->getByCond($cond,$type,$order,$count,$offset);		
	}
	
	/**
	 * 获取数据总数
	 */
	public function getCount($cond){
		$PositionRightMapObj = new User_Model_PositionRightMap();
		return $PositionRightMapObj->getCount($cond);
	}
	

}